home *** CD-ROM | disk | FTP | other *** search
- Path: toad.stack.urc.tue.nl!not-for-mail
- From: eka@stack.urc.tue.nl (Eka Durmin)
- Newsgroups: comp.sys.amiga.programmer,comp.sys.amiga.applications,comp.unix.amiga
- Subject: NEED HELP: Unix sh-script
- Date: 20 Mar 1996 19:02:38 +0100
- Organization: MCGV Stack, Eindhoven University of Technology, the Netherlands.
- Message-ID: <4iph7u$cct@toad.stack.urc.tue.nl>
- NNTP-Posting-Host: toad.stack.urc.tue.nl
- X-Newsreader: TIN [version 1.2 PL2]
-
- Hello,
-
- I want to make a script which can be executed on an Unix.
- I have the same script (it does the same) for the Amiga shell-script:
- step1:
- what: search a keyword in a textfile
- output: the line(s) (not the line numbers) containing this keyword
- Amiga: grep
- Unix: grep
- step2:
- what: get the #th line of a textfile (= output of step1)
- output: the line
- Amiga: Lines
- Unix: ???
- step3:
- what: get the #th word of a line
- output: the word
- Amiga: GetWord
- Unix: ???
-
- As you can see, I don't know how to do step 2 and 3.
-
- It is also possible to write a C-programme... it should be easy... but
- I don't have any experiences with C.
- --
- E. Durmin
- email: eka@stack.urc.tue.nl
- www : http://www.stack.urc.tue.nl/~eka/
- phone: +31(0)40-2112936
-
- 'There is an inverse relationship between how
- good something is and how much fun it is'
-